//
//  ESMoviePlayer.m
//  测试视频
//
//  Created by lanou3g on 15/7/1.
//  Copyright (c) 2015年 不成熟. All rights reserved.
//

#import "ESMoviePlayer.h"

@implementation ESMoviePlayer
+(instancetype)playerWithUrl:(NSString *)url
{
    NSURL *Url = [NSURL URLWithString:url];
    return [[self alloc] initWithContentURL:Url];
}

+(instancetype)player
{
    static ESMoviePlayer *player = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        player = [[self alloc] init];
    });
    return player;
}
@end
